package com.yellowpage.omc.datacollect.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * DataCollect entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "OMC_DATA_COLLECT")
public class DataCollect implements java.io.Serializable {

	// Fields

	private Long dataCollectId;
	private Long dataCollectBatchId;
	private Long seq;
	private String name;
	private String link;
	private String icon;
	private String telType;
	private String tel;
	private String city;
	private String class01;
	private String class02;
	private String info;
	private String addr;
	private String fax;
	private String tel02;
	private String status;
	private Date createTime;
	private Long lastDataVerifyId;
	private Date lastVerifyTime;
	private Long lastVerifyUser;
	private String note;
	private String regionCode;
	
	private Long listId;
	private String optType;

	// Constructors

	/** default constructor */
	public DataCollect() {
	}

	/** full constructor */
	public DataCollect(Long dataCollectBatchId, Long seq, String name,
			String link, String icon, String telType, String tel, String city,
			String class01, String class02, String info, String addr,
			String fax, String tel02, String status, Date createTime,
			Long lastDataVerifyId, Date lastVerifyTime, Long lastVerifyUser,
			String note, String regionCode, Long listId, String optType) {
		this.dataCollectBatchId = dataCollectBatchId;
		this.seq = seq;
		this.name = name;
		this.link = link;
		this.icon = icon;
		this.telType = telType;
		this.tel = tel;
		this.city = city;
		this.class01 = class01;
		this.class02 = class02;
		this.info = info;
		this.addr = addr;
		this.fax = fax;
		this.tel02 = tel02;
		this.status = status;
		this.createTime = createTime;
		this.lastDataVerifyId = lastDataVerifyId;
		this.lastVerifyTime = lastVerifyTime;
		this.lastVerifyUser = lastVerifyUser;
		this.note = note;
		this.regionCode = regionCode;
		this.listId = listId;
		this.optType = optType;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "DATA_COLLECT_ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getDataCollectId() {
		return this.dataCollectId;
	}

	public void setDataCollectId(Long dataCollectId) {
		this.dataCollectId = dataCollectId;
	}

	@Column(name = "DATA_COLLECT_BATCH_ID", precision = 18, scale = 0)
	public Long getDataCollectBatchId() {
		return this.dataCollectBatchId;
	}

	public void setDataCollectBatchId(Long dataCollectBatchId) {
		this.dataCollectBatchId = dataCollectBatchId;
	}

	@Column(name = "SEQ", precision = 18, scale = 0)
	public Long getSeq() {
		return this.seq;
	}

	public void setSeq(Long seq) {
		this.seq = seq;
	}

	@Column(name = "NAME", length = 256)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "LINK", length = 1024)
	public String getLink() {
		return this.link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	@Column(name = "ICON", length = 1024)
	public String getIcon() {
		return this.icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	@Column(name = "TEL_TYPE", length = 16)
	public String getTelType() {
		return this.telType;
	}

	public void setTelType(String telType) {
		this.telType = telType;
	}

	@Column(name = "TEL", length = 32)
	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "CITY", length = 32)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "CLASS01", length = 32)
	public String getClass01() {
		return this.class01;
	}

	public void setClass01(String class01) {
		this.class01 = class01;
	}

	@Column(name = "CLASS02", length = 32)
	public String getClass02() {
		return this.class02;
	}

	public void setClass02(String class02) {
		this.class02 = class02;
	}

	@Column(name = "INFO", length = 1024)
	public String getInfo() {
		return this.info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	@Column(name = "ADDR", length = 512)
	public String getAddr() {
		return this.addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	@Column(name = "FAX", length = 32)
	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	@Column(name = "TEL02", length = 32)
	public String getTel02() {
		return this.tel02;
	}

	public void setTel02(String tel02) {
		this.tel02 = tel02;
	}

	@Column(name = "STATUS", length = 2)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 7)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "LAST_DATA_VERIFY_ID", precision = 18, scale = 0)
	public Long getLastDataVerifyId() {
		return this.lastDataVerifyId;
	}

	public void setLastDataVerifyId(Long lastDataVerifyId) {
		this.lastDataVerifyId = lastDataVerifyId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LAST_VERIFY_TIME", length = 7)
	public Date getLastVerifyTime() {
		return this.lastVerifyTime;
	}

	public void setLastVerifyTime(Date lastVerifyTime) {
		this.lastVerifyTime = lastVerifyTime;
	}

	@Column(name = "LAST_VERIFY_USER", precision = 18, scale = 0)
	public Long getLastVerifyUser() {
		return this.lastVerifyUser;
	}

	public void setLastVerifyUser(Long lastVerifyUser) {
		this.lastVerifyUser = lastVerifyUser;
	}

	@Column(name = "NOTE", length = 128)
	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	@Column(name = "REGION_CODE", length = 6)
	public String getRegionCode() {
		return regionCode;
	}

	public void setRegionCode(String regionCode) {
		this.regionCode = regionCode;
	}
	
	@Column(name = "LIST_ID", precision = 18, scale = 0)
	public Long getListId() {
		return listId;
	}

	public void setListId(Long listId) {
		this.listId = listId;
	}

	@Column(name = "OPT_TYPE", length = 18)
	public String getOptType() {
		return optType;
	}

	public void setOptType(String optType) {
		this.optType = optType;
	}

}